package com.webside.advertisement.service.impl;

 


 

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webside.advertisement.mapper.AdPositionMapper;
import com.webside.advertisement.mapper.AdReleaseMapper;
import com.webside.advertisement.model.AdPositionEntity;
import com.webside.advertisement.model.AdReleaseEntity;
import com.webside.advertisement.service.AdPositionService;
import com.webside.advertisement.service.AdReleaseService;
import com.webside.base.baseservice.impl.AbstractService;
import com.webside.series.mapper.BdictionaryMapper;
import com.webside.series.mapper.SeriesMapper;
import com.webside.series.model.Bdictionary;

@Service("AdReleaseService")
public class AdReleaseServiceImpl  extends AbstractService<AdReleaseEntity, Long> implements AdReleaseService{


	


	@Override
	public int updatePass(List<Long> ids) {
		// TODO Auto-generated method stub
		return adReleaseMapper.updatePass(ids);
	}


	@Override
	public List<HashMap<String, Object>> queryListByAdP(String id) {
		// TODO Auto-generated method stub
		return adReleaseMapper.queryListByAdP(id);
	}


	@Autowired
	private BdictionaryMapper bdictionaryMapper;
	@Autowired
	private AdPositionMapper adPositionMapper;
	@Autowired
	private AdReleaseMapper adReleaseMapper;


	@Autowired
	public void setBaseMapper() {
		super.setBaseMapper(adReleaseMapper);
	}


	@Override
	public List<HashMap<String, Object>> queryListByAdRelease(String code, String sdate, String edate, String type) {
		// TODO Auto-generated method stub
		return adReleaseMapper.queryListByAdRelease(code,sdate,edate,type);
	}


	@Override
	public List<AdPositionEntity> queryAllAdPositionCode() {
		// TODO Auto-generated method stub
		return adPositionMapper.queryAllAdPositionCode();
	}


	@Override
	public List<AdReleaseEntity> selectSubTime(String date, String pCode) {
		// TODO Auto-generated method stub
		return adReleaseMapper.selectSubTime(date,pCode);
	}


	@Override
	public List<AdReleaseEntity> queryListByAdPAnddate(String code, String sdate, String edate,String type) {
		// TODO Auto-generated method stub
		return adReleaseMapper.queryListByAdPAnddate(code,sdate,edate,type);
	}
	

}
